package com.doudou.pay.helper.entities;
import java.io.Serializable;
import java.util.Date;

public class MerchantDeductionDetail implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String userId;
	private String payId;
	private String payType;
	private Double orderMoney;
	private Double deductionMoney;
	private Double rate;
	private Date deductionTime;
	private String thirdPartyOrderId;

	public MerchantDeductionDetail(PayOrder payOrder,Double deductionMoney) {
		this.userId = payOrder.getUserId();
		this.payId = payOrder.getPayId();
		this.payType = payOrder.getType();
		this.orderMoney = payOrder.getMoney();
		this.deductionMoney = deductionMoney;
		this.deductionTime = new Date();
		this.thirdPartyOrderId = payOrder.getThirdPartyOrderId();
	}
	
	public MerchantDeductionDetail() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getPayId() {
		return payId;
	}
	public void setPayId(String payId) {
		this.payId = payId;
	}
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public Double getOrderMoney() {
		return orderMoney;
	}
	public void setOrderMoney(Double orderMoney) {
		this.orderMoney = orderMoney;
	}
	public Double getDeductionMoney() {
		return deductionMoney;
	}
	public void setDeductionMoney(Double deductionMoney) {
		this.deductionMoney = deductionMoney;
	}
	public Double getRate() {
		return rate;
	}
	public void setRate(Double rate) {
		this.rate = rate;
	}
	public Date getDeductionTime() {
		return deductionTime;
	}
	public void setDeductionTime(Date deductionTime) {
		this.deductionTime = deductionTime;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getThirdPartyOrderId() {
		return thirdPartyOrderId;
	}

	public void setThirdPartyOrderId(String thirdPartyOrderId) {
		this.thirdPartyOrderId = thirdPartyOrderId;
	}
}
